package com.ledi.guns.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 文件名称： com.ledi.guns.common.persistence.model.OrderPayStream.java<br/>
 * 初始作者： 钟小平<br/>
 * 创建日期： 2018年7月17日<br/>
 * 功能说明： 订单支付记录 <br/>
 * =================================================<br/>
 * 修改记录：<br/>
 * 修改作者 日期 修改内容<br/>
 * ================================================<br/>
 * Copyright (乐迪教育科技有限公司-幼儿事业部) 2017-2018.All rights reserved.<br/>
 */
@TableName("t_order_pay_stream")
public class OrderPayStream extends Model<OrderPayStream> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 订单ID
	 */
	@TableField("order_id")
	private Long orderId;
	/**
	 * 支付方式
	 */
	@TableField("pay_way")
	private String payWay;
	/**
	 * 接口地址
	 */
	@TableField("api_url")
	private String apiUrl;
	/**
	 * 接口名称
	 */
	@TableField("api_name")
	private String apiName;
	/**
	 * 发送内容
	 */
	@TableField("req_data")
	private String reqData;
	/**
	 * 发送时间
	 */
	@TableField("req_time")
	private Date reqTime;
	/**
	 * 接受内容
	 */
	@TableField("res_data")
	private String resData;
	/**
	 * 接受时间
	 */
	@TableField("res_time")
	private Date resTime;
	/**
	 * (S:请求外部，R：接收外部)
	 */
	@TableField("invoke_type")
	private String invokeType;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Date createTime;

	public Long getId() {

		return id;
	}

	public void setId(Long id) {

		this.id = id;
	}

	public Long getOrderId() {

		return orderId;
	}

	public void setOrderId(Long orderId) {

		this.orderId = orderId;
	}

	public String getPayWay() {

		return payWay;
	}

	public void setPayWay(String payWay) {

		this.payWay = payWay;
	}

	public String getApiUrl() {

		return apiUrl;
	}

	public void setApiUrl(String apiUrl) {

		this.apiUrl = apiUrl;
	}

	public String getApiName() {

		return apiName;
	}

	public void setApiName(String apiName) {

		this.apiName = apiName;
	}

	public String getReqData() {

		return reqData;
	}

	public void setReqData(String reqData) {

		this.reqData = reqData;
	}

	public Date getReqTime() {

		return reqTime;
	}

	public void setReqTime(Date reqTime) {

		this.reqTime = reqTime;
	}

	public String getResData() {

		return resData;
	}

	public void setResData(String resData) {

		this.resData = resData;
	}

	public Date getResTime() {

		return resTime;
	}

	public void setResTime(Date resTime) {

		this.resTime = resTime;
	}

	public String getInvokeType() {

		return invokeType;
	}

	public void setInvokeType(String invokeType) {

		this.invokeType = invokeType;
	}

	public Date getCreateTime() {

		return createTime;
	}

	public void setCreateTime(Date createTime) {

		this.createTime = createTime;
	}

	@Override
	public String toString() {

		return "CustomerOrderPayStream{" +
				"id=" + id +
				", orderId=" + orderId +
				", payWay=" + payWay +
				", apiUrl=" + apiUrl +
				", apiName=" + apiName +
				", reqData=" + reqData +
				", reqTime=" + reqTime +
				", resData=" + resData +
				", resTime=" + resTime +
				", invokeType=" + invokeType +
				", createTime=" + createTime +
				"}";
	}

	@Override
	protected Serializable pkVal() {

		return id;
	}
}
